<template>
    <nav id="nav" class="navbar navbar-default navbar-fixed-top">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">TT</a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
                <ul class="nav navbar-nav">
                    <li>
                        <router-link v-bind:to="{path:'/articlelist'}">文章</router-link>
                    </li>
                    <!--<li><a v-link>文章</a></li>-->
                    <li>
                        <a>个人日记</a>
                    </li>
                    <li>
                        <a>学习感悟</a>
                    </li>
                </ul>
                <form class="navbar-form navbar-left">
                    <div class="form-group">
                        <input type="text" placeholder="请输入要搜索的内容" class="form-control">
                        <button type="submit" class="btn btn-default">站内搜索</button>
                    </div>
                </form>
            </div>
        </div>
    </nav>
</template>
<script>
export default {
    data() {
        return {

        }
    }
}
</script>
<style>
@media (min-width: 798px) {
    .container-fluid {
        width: 80%;
        margin: 0 auto;
    }
}
</style>